using MediatR;
using RBAC.Domain.Dto.Output;
using RBAC.ErrorCode;
using RBAC.Read.Api.Application.Dto.ERP;
using System;

namespace RBAC.Read.Api.Application.Command.ERP.PurchasingManagement.PurchaseOrders
{
    /// <summary>
    /// 采购订单主表列表（分页+条件）
    /// </summary>
    public class GetPurchaseOrdersListCommand : IRequest<APIPaging<PurchaseOrderListDto>>
    {   /// <summary>
            /// 页码
            /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 单据编码（模糊）
        /// </summary>
        public string? DocCode { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string? docStatus { get; set; }
        /// <summary>
        /// 业务状态
        /// </summary>
        public string? bizStatus { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        public string? BizType { get; set; }    
        /// <summary>
        /// 采购部门
        /// </summary>
        public string? purchaseDept { get; set; }
        /// <summary>
        /// 采购员
        /// </summary>
        public string? purchaser { get; set; }
        /// <summary>
        /// 单据日期开始
        /// </summary>
        public DateTime? DocDateStart { get; set; }
        /// <summary>
        /// 单据日期结束
        /// </summary>
        public DateTime? DocDateEnd { get; set; }
    }
}
